import BaseModel from './LogBaseModel'
import API from '@/api/apis'

class LogServerProcessModel extends BaseModel{

  constructor() {
    super()
    /**
     * 请求类型 GET POST
     */
    this.reqType = null
    /**
     * 请求的url
     */
    this.reqUrl = null
    /**
     * 响应的数据大小
     */
    this.size = null
    /**
     * 响应的状态码
     */
    this.statusCode = null
    /**
     * 响应时长
     */
    this.timeLength = null

    /**
     * 删除单个数据的URL
     */
    this.removeOneUrl = API.logs.serverProcessRemoveOne
  }
}

/**
 * 列表加载URL
 * @type {String}
 */
LogServerProcessModel.listUrl = API.logs.serverProcessList
/**
 * 删除所有数据的URL
 * @type {String}
 */
LogServerProcessModel.removeAllUrl = API.logs.serverProcessRemoveAll

export default LogServerProcessModel
